package cn.iocoder.yudao.module.xhyy.controller.admin.exam.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 试卷资源 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ExamRespVO {

    @Schema(description = "唯一标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "26229")
    @ExcelProperty("唯一标识")
    private String id;

    @Schema(description = "试卷名称", example = "李四")
    @ExcelProperty("试卷名称")
    private String examName;

    @Schema(description = "章节")
    @ExcelProperty("章节")
    private String chapter;

    @Schema(description = "年级")
    @ExcelProperty(value = "年级", converter = DictConvert.class)
    @DictFormat("xhyy_grade") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer grade;

    private Integer bookId;
    @Schema(description = "书籍名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @ExcelProperty("书籍名称")
    private String bookName;

    @Schema(description = "资源地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @ExcelProperty("资源地址")
    private String examUrl;

    @Schema(description = "排序")
    @ExcelProperty("排序")
    private Integer sort;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}